package org.i0o.appliancemanager.service;

import org.i0o.appliancemanager.explorer.BusinessLayerException;
import org.i0o.utilplus.ValidateUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Service基类
 * 
 * @author <a href="mailto:781131@gmail.com">HTF</a>
 * @version 2010-8-30
 */
public abstract class BaseService {
	/**
	 * 日志对象，子类不需要再声明
	 */
	protected final Logger log = LoggerFactory.getLogger(this.getClass());

	protected void checkNullParameter(Object... subjects) {
		if (ValidateUtil.hasBlank(subjects)) { throw new BusinessLayerException("Parameter can not be empty."); }
	}

}
